//
//  CourseDetialTableViewController.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/1.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class CourseDetialTableViewController;

@protocol CourseDetialTableViewControllerDelegate <NSObject>

@optional

- (void)speakText:(CourseDetialTableViewController*)vc andText:(NSString*)text;
- (void)stopSpeak:(CourseDetialTableViewController*)vc;
- (void)playAudio:(CourseDetialTableViewController*)vc andAudio:(NSString*)audio;

@end

@interface CourseDetialTableViewController : UITableViewController

@property(nonatomic,assign)NSInteger sel_index;
@property(nonatomic,assign)BOOL isSel;
@property(nonatomic,copy)NSString *courseId;
@property (nonatomic,weak)id<CourseDetialTableViewControllerDelegate>delegate;
@property(nonatomic,assign)CGFloat currentAvailableWidth;
@property(nonatomic,assign)CGFloat currentAvailableHeight;
-(void)refreshWidth;
-(void)stopPlayAnimation;

@end

NS_ASSUME_NONNULL_END
